package com.example.homework_5_2;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "user_data")
public class Data {

    @PrimaryKey(autoGenerate = true)
    private int id;

    private String account_name;
    private String account_password;
    private String id_card;
    private String birthday;
    private String real_name;
    private boolean is_upload_data;

    public Data(String real_name, String birthday, String id_card, String account_password, String account_name, boolean is_upload_data) {
        this.real_name = real_name;
        this.birthday = birthday;
        this.id_card = id_card;
        this.account_password = account_password;
        this.account_name = account_name;
        this.is_upload_data = is_upload_data;
    }

    public boolean isIs_upload_data() {
        return is_upload_data;
    }

    public void setIs_upload_data(boolean is_upload_data) {
        this.is_upload_data = is_upload_data;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount_name() {
        return account_name;
    }

    public void setAccount_name(String account_name) {
        this.account_name = account_name;
    }

    public String getAccount_password() {
        return account_password;
    }

    public void setAccount_password(String account_password) {
        this.account_password = account_password;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }
}
